package com.wb.entity

/**
 * 普通消息实体
 * @author 祁雪
 */
open  class MsgGet {

    var event: String? = null

    var robot_wxid: String? = null

    var robot_name: String? = null

    /**
     * 2005. 撤回的消息
     * 1. 文本消息
     * 3. 图片消息
     * 34. 语音消息
     * 42. 名片消息
     * 43. 视频
     * 47. 动态表情
     * 48. 地理位置
     * 49. 分享链接
     * 2000. 转账
     * 2001. 红包
     * 2002. 小程序
     * 2003. 群邀请
     *
     */
    var type: Int = 0

    var from_wxid: String? = null

    var from_name: String? = null

    var final_from_wxid: String? = null

    var final_from_name: String? = null

    var to_wxid: String? = null

    var to_name: String? = null

    var msg: String = ""

    // 以下为消息撤回字段
    var content: String? = msg

    var msg_type: Int? = type

    var msgid: Long? = null

    var timestamp: Long? = null

    override fun toString(): String {
        return "MsgGet(event=$event, robot_wxid=$robot_wxid, robot_name=$robot_name, type=$type, from_wxid=$from_wxid, from_name=$from_name, final_from_wxid=$final_from_wxid, final_from_name=$final_from_name, to_wxid=$to_wxid, to_name=$to_name, msg='$msg', content=$content, msg_type=$msg_type, msgid=$msgid, timestamp=$timestamp)"
    }


}